package com.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @description 用户授权信息实体
 */
@Data
@AllArgsConstructor
public class UserAuth {

    /**
     * @description 授权用户MappingId
     */
    private String id;

    /**
     * @description 用户id
     */
    private String user_id;

    /**
     * @description 登录标识号类型
     */
    private Integer identity_type;

    /**
     * @description 登录标识号（存 微信 openId, 或 unionId）
     */
    private String identifier;

    /**
     * @description 密码凭证
     */
    private String credential;

    public UserAuth(String userId, Integer identityType, String identifier) {
        this.user_id = userId;
        this.identity_type = identityType;
        this.identifier = identifier;
    }
}
